package pl.streamsoft.test.model.entities;

public class CurrencyEntity {

	private Integer id;
	private CurrencyTypeEntity type;
	private DateEntryEntity date;
	private Double value;

	public CurrencyEntity() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public CurrencyTypeEntity getType() {
		return type;
	}

	public void setType(CurrencyTypeEntity type) {
		this.type = type;
	}

	public DateEntryEntity getDate() {
		return date;
	}

	public void setDate(DateEntryEntity date) {
		this.date = date;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public boolean isComplete() {
		return (type != null && date != null && value != null);
	}
}
